﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="PortalCacheKey.ascx.cs"
    Inherits="NCS.Portal.Administrator.Portals.PortalCacheKey" %>
<%@ Register Assembly="NCS.WebControl" Namespace="NCS.WebControls" TagPrefix="cc2" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:UpdatePanel ID="upanelCacheKey" runat="server" UpdateMode="Conditional"
    RenderMode="Inline">
    <Triggers>
        <asp:asyncpostbacktrigger ControlID="btnRemove" EventName="Click" />
        <asp:asyncpostbacktrigger ControlID="btnAdd" EventName="Click" />
    </Triggers>
    <ContentTemplate>
        <table border="0" cellpadding="2" cellspacing="2" style="width: 100%" class="InputBox">
            <tr>
                <td align="center">
                    <asp:Label ID="lblUpdateStatus" runat="server" meta:resourcekey="lblUpdateStatusResource1" Font-Bold="True" ForeColor="Blue"></asp:Label></td>
            </tr>
            <tr>
                <td align="center">
                    <table width="100%" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="40%" align="right">
                                <table>
                                    <tr>
                                        <td height="15">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="10">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:ListBox ID="lstCache" runat="server" Height="311px" Width="300px" SelectionMode="Multiple"
                                                meta:resourcekey="lstCacheResource1"></asp:ListBox>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%">
                                <table width="100%">
                                    <tr>
                                        <td align="center">
                                            <asp:Button ID="btnAdd" runat="server" Text=">>" OnClick="btnAdd_Click" Width="50px"
                                                meta:resourcekey="btnAddResource1" /></td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <asp:Button ID="btnRemove" runat="server" Text="<<" OnClick="btnRemove_Click" Width="50px"
                                                meta:resourcekey="btnRemoveResource1" /></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="40%">
                                <table>
                                    <tr>
                                        <td>
                                            <table width="100%" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblPortal" runat="server" meta:resourcekey="lblPortalResource1" Font-Bold="True"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="dropPortal" runat="server" Width="170px" meta:resourcekey="dropPortalResource1"
                                                            AutoPostBack="True" DataTextField="Portal_Name" DataValueField="PortalID" OnSelectedIndexChanged="dropPortal_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblZone" runat="server" meta:resourcekey="lblZoneResource1" Font-Bold="True"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="dropZone" runat="server" Width="170px" meta:resourcekey="dropPortalResource1"
                                                            AutoPostBack="True" DataTextField="Zone_Name" DataValueField="Zone_ID">
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:ListBox ID="lstCacheByPortalID" runat="server" Height="311px" Width="300px"
                                                SelectionMode="Multiple" meta:resourcekey="lstCacheResource1" DataTextField="CacheKey"
                                                DataValueField="Portal_Cache_ID"></asp:ListBox>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center">
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
